Introdução

Análise dos dados

Análise descritiva

N Mean SD Min Q1 Median Q3 Max
pregnancies 768 3.85 3.37 0.00 1.00 3.00 6.00 17.00
glucose 768 120.89 31.97 0.00 99.00 117.00 140.50 199.00
blood_pressure 768 69.11 19.36 0.00 62.00 72.00 80.00 122.00
skin_thickness 768 20.54 15.95 0.00 0.00 23.00 32.00 99.00
insulin 768 79.80 115.24 0.00 0.00 30.50 127.50 846.00
bmi 768 31.99 7.88 0.00 27.30 32.00 36.60 67.10
diabetes_pedigree_function 768 0.47 0.33 0.08 0.24 0.37 0.63 2.42
age 768 33.24 11.76 21.00 24.00 29.00 41.00 81.00
outcome 768 0.35 0.48 0.00 0.00 0.00 1.00 1.00
Variável Frequência de dados faltantes
glucose 5
blood_pressure 35
skin_thickness 227
insulin 374
bmi 11
age 0
pregnancies 0
outcome 0
diabetes_pedigree_function 0
N Mean SD Min Q1 Median Q3 Max
pregnancies 724 3.87 3.36 0.00 1.00 3.00 6.00 17.00
glucose 724 121.88 30.75 44.00 99.50 117.00 142.00 199.00
blood_pressure 724 72.40 12.38 24.00 64.00 72.00 80.00 122.00
bmi 724 32.47 6.89 18.20 27.50 32.40 36.60 67.10
diabetes_pedigree_function 724 0.47 0.33 0.08 0.24 0.38 0.63 2.42
age 724 33.35 11.77 21.00 24.00 29.00 41.00 81.00
outcome 724 0.34 0.48 0.00 0.00 0.00 1.00 1.00

Análise de correlação

Análise de Regressão

Modelo

Verificando pressupostos do modelo

Pontos influentes e de alavanca

Normalidade

##                                                Estatística      p
## Asymptotic one-sample Kolmogorov-Smirnov test       0.0395 0.3227
## Lilliefors (Kolmogorov-Smirnov) normality test      0.0390 0.0346
## Cramer-von Mises normality test                     0.2848 0.0005
## Shapiro-Wilk normality test                         0.9827 0.0000
## Shapiro-Francia normality test                      0.9844 0.0000
## Anderson-Darling normality test                     2.0938 0.0000

##                                                Estatística      p
## Asymptotic one-sample Kolmogorov-Smirnov test       0.0357 0.4447
## Lilliefors (Kolmogorov-Smirnov) normality test      0.0355 0.0766
## Cramer-von Mises normality test                     0.2036 0.0048
## Shapiro-Wilk normality test                         0.9871 0.0001
## Shapiro-Francia normality test                      0.9882 0.0002
## Anderson-Darling normality test                     1.5144 0.0007

Homoscedasticidade

bptest(fit6)                  # teste de Breusch-Pagan
## 
##  studentized Breusch-Pagan test
## 
## data:  fit6
## BP = 7.2478, df = 5, p-value = 0.2029

Erros não-correlacionados

bgtest(fit6)                  # teste de Breusch-Godfrey
## 
##  Breusch-Godfrey test for serial correlation of order up to 1
## 
## data:  fit6
## LM test = 0.83245, df = 1, p-value = 0.3616